// 引入二次封装的 axios
import server from './request'


// 登录
const GetLogin=(params)=>server.post('/sys/login',params)

// 员工管理
const managelist = (model)=>server.get('/user-manage/list',{params:model})

//数据可视化
const chartlist = ()=>server.get(`/chart/trend`)

// 第二个正负统计数据可视化
const getAmount = (model)=>server.get(`chart/time/amount`,{params:model})

// 饼状图
const getloop = () => server.get(`/chart/pie`)
// 日历


// 词云图
const Getcloud = () =>server.get('/chart/wordcloud')

const setexcel=(obj)=>server.post(`/user-manage/batch/import`,obj) //导入

//地图
const getTu = () =>server.get(`chart/bmap`)
// const getMap = () =>server.get(`chart/bmap`)


export {GetLogin,managelist,chartlist,getAmount,getloop,setexcel,Getcloud,getTu}

